<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<%@ include file="/common/taglibs.jsp" %>
<%@page contentType="text/html;charset=UTF-8" %>
<%@page pageEncoding="UTF-8" %>
<html>
<head>
    <title>销售终端查询</title>
    <script type="text/javascript" src="${yui_server_root}/2.9.0/build/history/history-min.js"></script>
    <script type="text/javascript" src="${yui_server_root}/2.9.0/build/json/json-min.js"></script>
    <script type="text/javascript" src="${yui_server_root}/2.9.0/build/datasource/datasource-min.js"></script>
    <script type="text/javascript" src="${yui_server_root}/2.9.0/build/datatable/datatable-min.js"></script>
    <script type="text/javascript" src="${yui_server_root}/2.9.0/build/paginator/paginator-min.js"></script>
    
    <script type="text/javascript" src="${static_server_root}/static/scripts/sales/salesterminal.js"></script>
</head>
<body>
	<div class="yui-g">
		<fieldset>
			<legend>销售终端查询</legend>
			<div class="operator-btn" style="padding-left: 5px;">
				<c:if test="${roleName == 'ROLE_AGENT_ADMIN'}">
	                <label for="province">省份:</label>
	                <input type="text" id="province" name="province" size="20"/>
                </c:if>
                <c:if test="${roleName == 'ROLE_OZING_AGENT'}">
                	<input id="province" name="province" type="hidden"/>
                </c:if>
                <label for="city">城市:</label>
                <input type="text" id="city" name="city" size="20"/>                
                <label for="terminalName">终端名称:</label>
                <input type="text" id="terminalName" name="terminalName" size="20"/>
                <label for="terminalAddress">终端地址:</label>
                <input type="text" id="terminalAddress" name="terminalAddress" size="20"/>
                <label for="salesYear">销售年度:</label>
			    <select id="salesYear" name="salesYear">
			        <option value="">----</option>
                   	<c:forEach items="${salesYearArray}" var="sy" varStatus="status">											
						<option value="${sy}">${sy}</option>
                   	</c:forEach>			        
			    </select>                
                <input type="button" class="" name="query_txs_btn" value='<fmt:message key="button.search"/>' id="query_txs_btn"/>
			</div>
			<div class="operator-btn">
                <div>
                    <c:if test="${roleName == 'ROLE_OZING_AGENT'}">
                    	<input type="button" id="addNewRecord" name="addNewRecord" value="增加记录">
                    </c:if>
                </div>			
			</div>
		</fieldset>
	</div>
	<div class="yui-g">
	    <div id="salesterminal-paging_top" class="paging"></div>
	    <div id="salesterminal-list"></div>
	    <div id="salesterminal-paging" class="paging"></div>
	</div>
</body>
</html>
